package com.ibeeking.gmc.global.service.common.param;

import com.ibeeking.nematos.utils.base.BaseValidationGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName UserDo
 * @Description 用户DO
 * @Author ibeeking
 * @Date 2020-11-13 15:08
 **/
@Data
public class OauthClientParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "Id不能为空", groups = {BaseValidationGroup.Update.class})
    private Long id;

    @NotBlank(message = "clientId不能为空", groups = {BaseValidationGroup.Insert.class})
    private String clientId;

    private String resourceIds;

    private String scope;

    @NotBlank(message = "授权类型不能为空")
    private String authorizedGrantTypes;

    private String webServerRedirectUri;

    private String authorities;

    private Integer accessTokenValidity;

    private Integer refreshTokenValidity;

    private String additionalInformation;

    private Integer autoApprove;
}
